#ifndef SERVERARGS_H
#define SERVERARGS_H

#include <QDialog>
#include "ui_serverargs.h"
#include "serveradapter.h"

class ServerArgs : public QDialog
{
	Q_OBJECT
private:
	bool accepted;

public:
	ServerArgs(QWidget *parent = 0, ServerAdapter * _serverAdapter = NULL);
	~ServerArgs();
	bool isAccepted();

public:
	Ui::ServerArgs ui;
	QString database;
	QString user;
	QString password;
	QString serverName;
	ServerAdapter * serverAdapter;

private slots:

	void connectToServer();
};

#endif // SERVERARGS_H
